//
//  DetailCollectionImageCell.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/31.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "DetailCollectionImageCell.h"

@implementation DetailCollectionImageCell
-(void)awakeFromNib{
    [super awakeFromNib];
}
-(void)setImageUrl:(NSString *)imageUrl{
    _imageUrl = imageUrl;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:_imageUrl] placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.imageView.image = image;
        
        if(self.downLoadImageComplete)self.downLoadImageComplete(image,self.indexPath);
    }];
    
}

-(void)layoutSubviews{
    [super layoutSubviews];
}

@end
